package com.spzx.product.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.spzx.product.domain.vo.IndexVO;
import com.spzx.product.domain.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import com.spzx.product.domain.ProductSku;
import com.spzx.product.domain.SkuQuery;
import com.spzx.product.domain.dto.ProductSaveDTO;
import com.spzx.product.domain.vo.ProductDetailVO;
import com.spzx.product.domain.vo.ProductSkuDetailsVO;
import com.spzx.product.domain.vo.ProductVO;

import java.util.List;

/**
* @author 老韦
* @description 针对表【product(商品)】的数据库操作Service
* @createDate 2024-09-24 14:07:17
*/
public interface ProductService extends IService<Product> {


    Page<ProductVO> selectProductList(Page<ProductVO> page, Product product);

    int insertProductInfo(ProductSaveDTO productSaveDTO);
    ProductDetailVO selectProductDetailVO(Long id);

    int updateProductSaveDTO(ProductSaveDTO productSaveDTO);

    int batchDelete(List<Long> ids);

    int updateStatusByid(Long id,Integer status);
    IndexVO selectIndexVO();

    List<ProductSku> selectSkulist(SkuQuery skuQuery);

    ProductSkuDetailsVO selectSkuDetailsVOBySkuId(Long skuId);
}
